﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 林宇辉
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
       
        }

        private void label1_Click(object sender, EventArgs e)
        {
          // DialogResult
        }

        private void button3_Click(object sender, EventArgs e)
        {
            
        }

        private void Form1_MouseClick(object sender, MouseEventArgs e)
        {
            //Form2 gg = new Form2();
            //gg.Show();
           var lin= MessageBox.Show("不多bb","你没了",MessageBoxButtons.YesNoCancel,MessageBoxIcon.Error);
            if (lin == DialogResult.Yes)
            {
                MessageBox.Show("你没了");
            }
            else if(lin==DialogResult.No){
                MessageBox.Show("你还是没了");
            }
            else {
                MessageBox.Show("gg");
            }
        }
    }
}
